// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
// 根目录的别名，可以自行在 webpack.config.js 里面的 alias 去设置,vue-cli中的是webpack.base.conf.js
import App from '@/App'
import FastClick from 'fastclick'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import axios from 'axios'
import store from '@/components/store'
import './assets/styles/reset.css'
import 'styles/border-1px.css' // 1.其实可以使用别名的,记得每次修改,需要重启webpack
import 'styles/iconfont.css'
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false

FastClick.attach(document.body)
Vue.use(VueAwesomeSwiper)
Vue.prototype.$http = axios
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>' // 可以简写,类似于<img />不闭合标签
})
